package com.woniuxy.activiti.mapper;

import com.woniuxy.entity.FlowInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xilei
 * @create 2021--13 10:46
 */
@Mapper
public interface FlowMapper {

    /**
     * 查询所有，按规则排序
     * @return
     */
    List<FlowInfo> selectFlowList();

    /**
     * 通过id修改
     * @param id
     * @return
     */
    int updateFlowDeployState(String id);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    FlowInfo selectOneFlow(String id);
}
